package com.bw.demo_mvvm.ui

import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.bw.demo_mvvm.net.BaseResponse
import retrofit2.http.Query

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/16 19:33
 * @Description :
 */
class MvvmViewModel: ViewModel() {

    private val repository: MvvmRepository by lazy {
        MvvmRepository()
    }

    fun video(currentPage:Int, pageSize:Int): LiveData<BaseResponse<MutableList<VideoEntity>>>{
        return repository.video(currentPage, pageSize)
    }

}